package com.mdd.admin.service.teacher;

import com.mdd.admin.validate.common.PageParam;
import com.mdd.admin.validate.teacher.TeacherParam;
import com.mdd.admin.vo.teacher.TeacherListVo;
import com.mdd.admin.vo.teacher.TeacherDetailVo;
import com.mdd.common.core.PageResult;
import com.mdd.common.entity.course.Course;
import com.mdd.common.entity.teacher.Teacher;

import java.util.List;
import java.util.Map;

/**
 * 讲师服务接口类
 * @author panweiliang
 */
public interface ITeacherService {

    /**
     * 讲师列表
     *
     * @author panweiliang
     * @param pageParam 分页参数
     * @param params 搜索参数
     * @return PageResult<TeacherVo>
     */
    PageResult<TeacherListVo> list(PageParam pageParam, Map<String, String> params);

    /**
     * 讲师列表
     *
     * @author panweiliang
     * @return List<TeacherDetailVo>
     */
    List<TeacherDetailVo> getAll();

    /**
     * 讲师详情
     *
     * @author panweiliang
     * @param id 主键ID
     * @return Teacher
     */
    TeacherDetailVo detail(Integer id);

    /**
     * 讲师新增
     *
     * @author panweiliang
     * @param teacherParam 参数
     */
    void add(TeacherParam teacherParam);

    /**
     * 讲师编辑
     *
     * @author panweiliang
     * @param teacherParam 参数
     */
    void edit(TeacherParam teacherParam);

    /**
     * 讲师删除
     *
     * @author panweiliang
     * @param id 主键ID
     */
    void del(Integer id);

    /**
     * 讲师状态
     *
     * @param id 课程主键
     */
    Teacher changeStatus(Integer id);

}
